package com.government.tag.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.government.common.annotation.Excel;
import com.government.common.core.domain.BaseEntity;
import com.government.common.core.domain.entity.SysMenu;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.ArrayList;
import java.util.List;

/**
 * 标签信息对象 t_tag
 * 
 * @author system
 * @date 2023-09-13
 */
@TableName("t_tag")
@Data
public class Tag extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 标签id */
    @TableId(type = IdType.AUTO )
    private Long id;

    /** 父级标签id */
    private Long parentId;

    /** 标签名称 */
    @Excel(name = "标签名称")
    private String name;

    /** 标签分类 */
    private Long type;

    /** 是否所有人可见 */
    private String isShow;

    /** 是否所有人可见 */
    private String isDeleted;

    /** 分组编号 */
    @Excel(name = "分组编号")
    private Long groupId;

    /** 排序号 */
    @Excel(name = "排序号")
    private Long sort;

    /** 子菜单 */
    @TableField(exist = false)
    private List<SysMenu> children = new ArrayList<SysMenu>();
}
